//
//  GaoMaskView.m
//
//  Created by Gikki Ares on 2021/6/18.
//

#import "JsMaskView.h"

@implementation JsMaskView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

//子view可以点击,其余穿过.
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
	UIView * view = [super hitTest:point withEvent:event];
	if(view == self) {
		return nil;
	}
	else {
		return view;
	}
}

- (void)layoutSubviews {
	[super layoutSubviews];
	self.frame = self.superview.bounds;
	UIView * view = self.subviews[0];
	[view setNeedsLayout];
}

- (void)dealloc {
//	NSLog(@"JsMaskView dealloc");
}

@end
